<head th:fragment="header">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" th:href="@{/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
    <link href="/css/font-awesome.css?v=4.4.0" th:href="@{/css/font-awesome.css?v=4.4.0}" rel="stylesheet">
    <link href="/css/plugins/bootstrap-table/bootstrap-table.min.css" th:href="@{/css/plugins/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/jsTree/style.min.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/jqTreeGrid/jquery.treegrid.css}" rel="stylesheet">
    <!--summernote css -->
    <link th:href="@{/css/plugins/summernote/summernote.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/summernote/summernote-bs3.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/bootstrap-validator/bootstrapValidator.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/selectBoxIt/jquery.selectBoxIt.css}" rel="stylesheet">
    <link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.8/summernote.css" rel="stylesheet">

    <link th:href="@{/css/animate.css}"  rel="stylesheet">
    <link th:href="@{/css/plugins/chosen/chosen.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/iCheck/custom.css}" rel="stylesheet">
    <link th:href="@{/css/style.css?v=4.1.0}" rel="stylesheet">
    <!-- ztree-->
    <link rel="stylesheet" th:href="@{/js/plugins/zTree/css/zTreeStyle/metro.css}">
    <link th:href="@{/css/iot.css}" rel="stylesheet">
</head>
<div th:fragment="footer">
    <script th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
    <script th:src="@{/js/jquery-ui.js}"></script>
    <script th:src="@{/js/bootstrap.min.js?v=3.3.6}"></script>
    <script th:src="@{/js/plugins/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-table/bootstrap-table-export.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-table/tableExport.min.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-table/jquery.base64.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-validator/bootstrapValidator.js}"></script>
    <script th:src="@{/js/plugins/selectBoxIt/jquery.selectBoxIt.js}"></script>
    <script th:src="@{/js/bootstrap-filestyle.js}"></script>

    <script th:src="@{/js/plugins/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/js/plugins/validate/messages_zh.min.js}"></script>
    <script th:src="@{/js/plugins/jsTree/jstree.min.js}"></script>
    <script th:src="@{/js/plugins/jqTreeGrid/jquery.treegrid.min.js}"></script>
    <script th:src="@{/js/plugins/jqTreeGrid/jquery.treegrid.extension.js}"></script>
    <script th:src="@{/js/plugins/jqTreeGrid/jquery.treegrid.bootstrap3.js}"></script>
    <script th:src="@{/js/plugins/chosen/chosen.jquery.js}"></script>
    <script th:src="@{/js/plugins/layer/layer.js}"></script>
    <script th:src="@{/js/content.js?v=1.0.0}"></script>
    <script th:src="@{/js/plugins/iCheck/icheck.min.js}"></script>
    <script th:src="@{/js/plugins/layer/laydate/laydate.js}"></script>
    <script th:src="@{/js/utils/api.js}"></script>
    <script th:src="@{/js/utils/network.js}"></script>
    <script th:src="@{/js/utils/utils.js}"></script>
    <!-- 遮罩层 -->
    <script th:src="@{/js/plugins/layer/layer.min.js}"></script>
    <script th:src="@{/js/plugins/layui/layui.js}"></script>
    <script th:src="@{/js/plugins/blockUI/jquery.blockUI.js}"></script>
    <script th:src="@{/js/common-ui.js}"></script>
    <!--summernote-->
    <script th:src="@{/js/plugins/summernote/summernote.min.js}"></script>
    <script th:src="@{/js/plugins/summernote/summernote-zh-CN.js}"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.8/summernote.js"></script>
    <script src="https://cdn.bootcss.com/summernote/0.8.8/lang/summernote-zh-CN.min.js"></script>
    <script type="text/javascript" th:src="@{/js/plugins/zTree/js/jquery.ztree.all-3.5.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/zTree/js/jquery.ztree.exhide-3.5.min.js}"></script>
    <script th:src="@{/js/plugins/jquery.pagination/jquery.pagination.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/dataTables/js/jquery.dataTables.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/dataTables/js/dataTables.bootstrap.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugins/dataTables/js/dataTables.fixedColumns.js}"></script>

    <script th:inline="javascript"> var ctx = [[@{/}]];
      //转换日期格式(时间戳转换为datetime格式)
    function formatSeconds(value) {
        if(value!=null){
            var theTime = parseInt(value);// 秒
            var theTime1 = 0;// 分
            var theTime2 = 0;// 小时
            if(theTime > 60) {
                theTime1 = parseInt(theTime/60);
                theTime = parseInt(theTime%60);
                if(theTime1 > 60) {
                    theTime2 = parseInt(theTime1/60);
                    theTime1 = parseInt(theTime1%60);
                }
            }
            var result = ""+parseInt(theTime)+"秒";
            if(theTime1 > 0) {
                result = ""+parseInt(theTime1)+"分"+result;
            }
            if(theTime2 > 0) {
                result = ""+parseInt(theTime2)+"小时"+result;
            }
            return result;
        }else{
            return "0秒";
        }

    }
    </script>

</div>
